package com.linn.home.service;

import com.github.pagehelper.PageInfo;
import com.linn.home.entity.Node;
import com.linn.home.entity.Role;

import java.util.List;

/**
 * Created by Administrator on 2018/8/9.
 */
public interface RoleService {

    PageInfo findRoleList(PageInfo pageInfo);

    int addRole(Role role,String[] menuIds);

    int updateRole(Role role,String[] menuIds);

    int deleteRole(Role role);

    int batchRemoveRole(int[] ids);

    Role findRoleById(int id);

    List<Node> findRoleMenuList(Integer roleId);
}
